# -*- coding: utf-8 -*-
"""
Created on Sun Mar 28 17:29:11 2021

@author: Apple
"""


import pandas as pd
import numpy as np

def read_csv():
    data = pd.read_csv('1.csv')
    print(data.shape[0])
    print(data)
    print(data.iloc[1,1]) # 按行列读取
    data.iloc[1,1] = '50'
    print(data.iloc[1,1]) # 按行列读取
    print(data.iloc[:,:])
    Data = data.iloc[:,:].values.tolist() # 转换为list
    a = np.shape(data)[0] # 行数
    b = np.shape(data)[1] # 列数
    print(Data)
    print(a,b)
    print(Data[0][1])
    print(Data[0][:])

if __name__ == '__main__':
    read_csv() 
